package com.idanchuang.database.manage.service;

import com.idanchuang.component.base.JsonResult;
import com.idanchuang.component.base.page.PageData;
import com.idanchuang.database.manage.model.MenuList;
import com.idanchuang.database.manage.model.PageInput;

import java.util.List;
import java.util.Map;

/**
 * @param
 * @author:zhangmengsi
 * @description:
 * @date:Created in 16:49 2021/2/26
 */
public interface CrudService {
    List<MenuList> getMenuList();

    PageData<Map<String, Object>> getAllTableInfo(Integer current, Integer size, String database, String table);

    List<Map<String, Object>> getAllField(String database,String tableName);

    JsonResult<Object> executeSql(String database, String sql, PageInput input);
}
